import request from '@/utils/request'

// 查询城市7日天气列表
export function listSevenWeatherData(query) {
  return request({
    url: '/business/SevenWeatherData/list',
    method: 'get',
    params: query
  })
}

// 查询城市7日天气详细
export function getSevenWeatherData(id) {
  return request({
    url: '/business/SevenWeatherData/' + id,
    method: 'get'
  })
}

// 新增城市7日天气
export function addSevenWeatherData(data) {
  return request({
    url: '/business/SevenWeatherData',
    method: 'post',
    data: data
  })
}

// 修改城市7日天气
export function updateSevenWeatherData(data) {
  return request({
    url: '/business/SevenWeatherData',
    method: 'put',
    data: data
  })
}

// 删除城市7日天气
export function delSevenWeatherData(id) {
  return request({
    url: '/business/SevenWeatherData/' + id,
    method: 'delete'
  })
}
